Integrand size = 29, antiderivative size = 490 \[ \int \frac {\sqrt {a+b x+c x^2}}{(d+e x) (f+g x)^2} \, dx=\frac {\sqrt {a+b x+c x^2}}{(e f-d g) (f+g x)}-\frac {(2 c d-b e) \text {arctanh}\left (\frac {b+2 c x}{2 \sqrt {c} \sqrt {a+b x+c x^2}}\right )}{2 \sqrt {c} (e f-d g)^2}+\frac {e (2 c f-b g) \text {arctanh}\left (\frac {b+2 c x}{2 \sqrt {c} \sqrt {a+b x+c x^2}}\right )}{2 \sqrt {c} g (e f-d g)^2}-\frac {\sqrt {c} \text {arctanh}\left (\frac {b+2 c x}{2 \sqrt {c} \sqrt {a+b x+c x^2}}\right )}{g (e f-d g)}+\frac {\sqrt {c d^2-b d e+a e^2} \text {arctanh}\left (\frac {b d-2 a e+(2 c d-b e) x}{2 \sqrt {c d^2-b d e+a e^2} \sqrt {a+b x+c x^2}}\right )}{(e f-d g)^2}+\frac {(2 c f-b g) \text {arctanh}\left (\frac {b f-2 a g+(2 c f-b g) x}{2 \sqrt {c f^2-b f g+a g^2} \sqrt {a+b x+c x^2}}\right )}{2 g (e f-d g) \sqrt {c f^2-b f g+a g^2}}-\frac {e \sqrt {c f^2-b f g+a g^2} \text {arctanh}\left (\frac {b f-2 a g+(2 c f-b g) x}{2 \sqrt {c f^2-b f g+a g^2} \sqrt {a+b x+c x^2}}\right )}{g (e f-d g)^2} \]
[Out]
Time = 0.41 (sec) , antiderivative size = 490, normalized size of antiderivative = 1.00, number of steps used = 20, number of rules used = 7, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.241, Rules used = {974, 748, 857, 635, 212, 738, 746} \[ \int \frac {\sqrt {a+b x+c x^2}}{(d+e x) (f+g x)^2} \, dx=\frac {\sqrt {a e^2-b d e+c d^2} \text {arctanh}\left (\frac {-2 a e+x (2 c d-b e)+b d}{2 \sqrt {a+b x+c x^2} \sqrt {a e^2-b d e+c d^2}}\right )}{(e f-d g)^2}-\frac {e \sqrt {a g^2-b f g+c f^2} \text {arctanh}\left (\frac {-2 a g+x (2 c f-b g)+b f}{2 \sqrt {a+b x+c x^2} \sqrt {a g^2-b f g+c f^2}}\right )}{g (e f-d g)^2}+\frac {(2 c f-b g) \text {arctanh}\left (\frac {-2 a g+x (2 c f-b g)+b f}{2 \sqrt {a+b x+c x^2} \sqrt {a g^2-b f g+c f^2}}\right )}{2 g (e f-d g) \sqrt {a g^2-b f g+c f^2}}-\frac {\sqrt {c} \text {arctanh}\left (\frac {b+2 c x}{2 \sqrt {c} \sqrt {a+b x+c x^2}}\right )}{g (e f-d g)}-\frac {(2 c d-b e) \text {arctanh}\left (\frac {b+2 c x}{2 \sqrt {c} \sqrt {a+b x+c x^2}}\right )}{2 \sqrt {c} (e f-d g)^2}+\frac {e (2 c f-b g) \text {arctanh}\left (\frac {b+2 c x}{2 \sqrt {c} \sqrt {a+b x+c x^2}}\right )}{2 \sqrt {c} g (e f-d g)^2}+\frac {\sqrt {a+b x+c x^2}}{(f+g x) (e f-d g)} \]
[In]
[Out]
Rule 212
Rule 635
Rule 738
Rule 746
Rule 748
Rule 857
Rule 974
Rubi steps \begin{align*} \text {integral}& = \int \left (\frac {e^2 \sqrt {a+b x+c x^2}}{(e f-d g)^2 (d+e x)}-\frac {g \sqrt {a+b x+c x^2}}{(e f-d g) (f+g x)^2}-\frac {e g \sqrt {a+b x+c x^2}}{(e f-d g)^2 (f+g x)}\right ) \, dx \\ & = \frac {e^2 \int \frac {\sqrt {a+b x+c x^2}}{d+e x} \, dx}{(e f-d g)^2}-\frac {(e g) \int \frac {\sqrt {a+b x+c x^2}}{f+g x} \, dx}{(e f-d g)^2}-\frac {g \int \frac {\sqrt {a+b x+c x^2}}{(f+g x)^2} \, dx}{e f-d g} \\ & = \frac {\sqrt {a+b x+c x^2}}{(e f-d g) (f+g x)}-\frac {e \int \frac {b d-2 a e+(2 c d-b e) x}{(d+e x) \sqrt {a+b x+c x^2}} \, dx}{2 (e f-d g)^2}+\frac {e \int \frac {b f-2 a g+(2 c f-b g) x}{(f+g x) \sqrt {a+b x+c x^2}} \, dx}{2 (e f-d g)^2}-\frac {\int \frac {b+2 c x}{(f+g x) \sqrt {a+b x+c x^2}} \, dx}{2 (e f-d g)} \\ & = \frac {\sqrt {a+b x+c x^2}}{(e f-d g) (f+g x)}-\frac {(2 c d-b e) \int \frac {1}{\sqrt {a+b x+c x^2}} \, dx}{2 (e f-d g)^2}+\frac {\left (c d^2-b d e+a e^2\right ) \int \frac {1}{(d+e x) \sqrt {a+b x+c x^2}} \, dx}{(e f-d g)^2}+\frac {(e (2 c f-b g)) \int \frac {1}{\sqrt {a+b x+c x^2}} \, dx}{2 g (e f-d g)^2}-\frac {c \int \frac {1}{\sqrt {a+b x+c x^2}} \, dx}{g (e f-d g)}+\frac {(2 c f-b g) \int \frac {1}{(f+g x) \sqrt {a+b x+c x^2}} \, dx}{2 g (e f-d g)}-\frac {\left (e \left (c f^2-b f g+a g^2\right )\right ) \int \frac {1}{(f+g x) \sqrt {a+b x+c x^2}} \, dx}{g (e f-d g)^2} \\ & = \frac {\sqrt {a+b x+c x^2}}{(e f-d g) (f+g x)}-\frac {(2 c d-b e) \text {Subst}\left (\int \frac {1}{4 c-x^2} \, dx,x,\frac {b+2 c x}{\sqrt {a+b x+c x^2}}\right )}{(e f-d g)^2}-\frac {\left (2 \left (c d^2-b d e+a e^2\right )\right ) \text {Subst}\left (\int \frac {1}{4 c d^2-4 b d e+4 a e^2-x^2} \, dx,x,\frac {-b d+2 a e-(2 c d-b e) x}{\sqrt {a+b x+c x^2}}\right )}{(e f-d g)^2}+\frac {(e (2 c f-b g)) \text {Subst}\left (\int \frac {1}{4 c-x^2} \, dx,x,\frac {b+2 c x}{\sqrt {a+b x+c x^2}}\right )}{g (e f-d g)^2}-\frac {(2 c) \text {Subst}\left (\int \frac {1}{4 c-x^2} \, dx,x,\frac {b+2 c x}{\sqrt {a+b x+c x^2}}\right )}{g (e f-d g)}-\frac {(2 c f-b g) \text {Subst}\left (\int \frac {1}{4 c f^2-4 b f g+4 a g^2-x^2} \, dx,x,\frac {-b f+2 a g-(2 c f-b g) x}{\sqrt {a+b x+c x^2}}\right )}{g (e f-d g)}+\frac {\left (2 e \left (c f^2-b f g+a g^2\right )\right ) \text {Subst}\left (\int \frac {1}{4 c f^2-4 b f g+4 a g^2-x^2} \, dx,x,\frac {-b f+2 a g-(2 c f-b g) x}{\sqrt {a+b x+c x^2}}\right )}{g (e f-d g)^2} \\ & = \frac {\sqrt {a+b x+c x^2}}{(e f-d g) (f+g x)}-\frac {(2 c d-b e) \tanh ^{-1}\left (\frac {b+2 c x}{2 \sqrt {c} \sqrt {a+b x+c x^2}}\right )}{2 \sqrt {c} (e f-d g)^2}+\frac {e (2 c f-b g) \tanh ^{-1}\left (\frac {b+2 c x}{2 \sqrt {c} \sqrt {a+b x+c x^2}}\right )}{2 \sqrt {c} g (e f-d g)^2}-\frac {\sqrt {c} \tanh ^{-1}\left (\frac {b+2 c x}{2 \sqrt {c} \sqrt {a+b x+c x^2}}\right )}{g (e f-d g)}+\frac {\sqrt {c d^2-b d e+a e^2} \tanh ^{-1}\left (\frac {b d-2 a e+(2 c d-b e) x}{2 \sqrt {c d^2-b d e+a e^2} \sqrt {a+b x+c x^2}}\right )}{(e f-d g)^2}+\frac {(2 c f-b g) \tanh ^{-1}\left (\frac {b f-2 a g+(2 c f-b g) x}{2 \sqrt {c f^2-b f g+a g^2} \sqrt {a+b x+c x^2}}\right )}{2 g (e f-d g) \sqrt {c f^2-b f g+a g^2}}-\frac {e \sqrt {c f^2-b f g+a g^2} \tanh ^{-1}\left (\frac {b f-2 a g+(2 c f-b g) x}{2 \sqrt {c f^2-b f g+a g^2} \sqrt {a+b x+c x^2}}\right )}{g (e f-d g)^2} \\ \end{align*}
Time = 0.90 (sec) , antiderivative size = 228, normalized size of antiderivative = 0.47 \[ \int \frac {\sqrt {a+b x+c x^2}}{(d+e x) (f+g x)^2} \, dx=\frac {\frac {(e f-d g) \sqrt {a+x (b+c x)}}{f+g x}+2 \sqrt {-c d^2+b d e-a e^2} \arctan \left (\frac {\sqrt {c} (d+e x)-e \sqrt {a+x (b+c x)}}{\sqrt {-c d^2+e (b d-a e)}}\right )-\frac {\sqrt {-c f^2+b f g-a g^2} (2 c d f+2 a e g-b (e f+d g)) \arctan \left (\frac {\sqrt {c} (f+g x)-g \sqrt {a+x (b+c x)}}{\sqrt {-c f^2+g (b f-a g)}}\right )}{c f^2+g (-b f+a g)}}{(e f-d g)^2} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. \(1358\) vs. \(2(434)=868\).
Time = 0.90 (sec) , antiderivative size = 1359, normalized size of antiderivative = 2.77
[In]
[Out]
Timed out. \[ \int \frac {\sqrt {a+b x+c x^2}}{(d+e x) (f+g x)^2} \, dx=\text {Timed out} \]
[In]
[Out]
\[ \int \frac {\sqrt {a+b x+c x^2}}{(d+e x) (f+g x)^2} \, dx=\int \frac {\sqrt {a + b x + c x^{2}}}{\left (d + e x\right ) \left (f + g x\right )^{2}}\, dx \]
[In]
[Out]
\[ \int \frac {\sqrt {a+b x+c x^2}}{(d+e x) (f+g x)^2} \, dx=\int { \frac {\sqrt {c x^{2} + b x + a}}{{\left (e x + d\right )} {\left (g x + f\right )}^{2}} \,d x } \]
[In]
[Out]
\[ \int \frac {\sqrt {a+b x+c x^2}}{(d+e x) (f+g x)^2} \, dx=\int { \frac {\sqrt {c x^{2} + b x + a}}{{\left (e x + d\right )} {\left (g x + f\right )}^{2}} \,d x } \]
[In]
[Out]
Timed out. \[ \int \frac {\sqrt {a+b x+c x^2}}{(d+e x) (f+g x)^2} \, dx=\int \frac {\sqrt {c\,x^2+b\,x+a}}{{\left (f+g\,x\right )}^2\,\left (d+e\,x\right )} \,d x \]
[In]
[Out]